const BaseHandler     = require('../base-handler');
const HTTP_VERBS      = require('../../../constants').HTTP_VERBS;

class RootHandler extends BaseHandler {
    get pattern() {
        return "/";
    }

    doGET(request, response) {
        response.redirect('/console');
    }

    setup() {
        this.registerVerb(HTTP_VERBS.GET, this.doGET);
    }
}

module.exports = RootHandler;